<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title">文章列表</h3>
			</div>
			<div class="row">
			<div class="col-md-2 col-md-offset-1" >
				<a href="/manage/news/edit?pid=0" class="btn btn-block btn-success">新建文章</a>
			</div>
			</div>
			<!-- /.box-header -->
			<div class="box-body">
				<table id="datatable" class="table table-bordered table-striped table-hover">
					<thead>
						<tr>
							<th width="25%" class="text-center">网页标题</th>
							<th width="10%" class="text-center">所属分类</th>
							<th width="20%" class="text-center">内容描述</th>
							<th width="15%" class="text-center">网页链接</th>
							<th width="15%" class="text-center">更新时间</th>
							<th width="15%" class="text-center">操作</th>
						</tr>
					</thead>
					<tbody>
					<!--{foreach($data as $k=>$v)}-->
						<tr>
							<td class="text-center" style="word-break: break-all;vertical-align: middle;"><!--{$v['title']}--></td>
							<td class="text-center" style="word-break: break-all;vertical-align: middle;"><!--{ echo $cat[$v['pid']];}--></td>
							<td style="text-align: center; word-break: break-all;vertical-align: middle;"><!--{$v['descript']}--></td>
							<td class="text-center" style="word-break: break-all;vertical-align: middle;"><a target="_blank" href="/home/news/content?id=<!--{$v['id']}-->">/home/news/content?id=<!--{$v['id']}--></a></td>
							<td class="text-center" style="word-break: break-all;vertical-align: middle;"><!--{echo date("Y-m-d H:i:s",$v['update_time']);}--></td>
							<td class="text-center" style="word-break: break-all;vertical-align: middle;"><a class="btn btn-primary" href="/manage/news/edit?id=<!--{$v['id']}-->">编辑</a> <a href="/manage/news/del?id=<!--{$v['id']}-->" class="btn btn-danger" onclick="if(!confirm('确定删除？'))return false;">删除</a></td>
						</tr>
						<!--{/foreach}-->
					</tbody>
				</table>
			</div>
			<!-- /.box-body -->
		</div>
		<!-- /.box -->
	</div>
	<!-- /.col -->
</div>
<script src="/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="/adminlte/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/adminlte/plugins/fastclick/fastclick.min.js"></script>
<!-- /.row -->
<script>
      $(function () {
        $('#datatable').DataTable({
        	"oLanguage": {
        		"sLengthMenu": "每页显示 _MENU_ 条记录",
        		"sZeroRecords": "抱歉， 没有找到",
        		"sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
        		"sInfoEmpty": "没有数据",
        		"sInfoFiltered": "(从 _MAX_ 条数据中检索)",
        		"oPaginate": {
        		"sFirst": "首页",
        		"sPrevious": "前一页",
        		"sNext": "后一页",
        		"sLast": "尾页"
        		},"sZeroRecords": "没有检索到数据",
        	},
        "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "全部"]],
         "paging": true,
         "lengthChange": true,
         "searching": true,
         "ordering": true,
         "info": true,
         "autoWidth": false,
         "aaSorting": [[0,'desc']]
        });
      });
</script>